package com.biostime.springdraw.modules.sd.entity;

import com.biostime.springdraw.common.persistence.DataEntity;

/**
 * 奖品表Entity
 * @author king
 * @version 2016-01-18
 */
public class Award extends DataEntity<Award> {

	private static final long serialVersionUID = 1L;
	
	private String name;// 名称
	private double price;// 价格
	private int amount;// 总数量
	private double rate;// 概率
	private String image;// 图片
	private String description;// 描述
	private String awardTypeId;//奖品类型id
	private int shareNum;//分享奖品数量
	
	private int sectionNum;//在抽奖设置中的数量
	
	private int stock;//伪·库存=总数-已经中走的
	
	private int realStock;//真·库存=总数-已经中走的-已经分享出去（未过期）里未抽走的
	
	private String isShare;//是否为分享
	
	private String isCoupon;//是否是优惠券
	
	private String couponId;//优惠券id
	
	private int sectionDistributed;//分发数目
	
	private int sectionDrawAward;//积分中奖数量
	
	private double realTimeRate;//实时概率
	
	private Awardtype awardtype;//奖品类型
	
	public Award(){
		super();
	}
	
	public Award(String id){
		super(id);
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}
	
	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}
	
	public double getRate() {
		return rate;
	}

	public void setRate(double rate) {
		this.rate = rate;
	}
	
	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getSectionNum() {
		return sectionNum;
	}

	public void setSectionNum(int sectionNum) {
		this.sectionNum = sectionNum;
	}

	public int getStock() {
		return stock;
	}

	public void setStock(int stock) {
		this.stock = stock;
	}

	public Awardtype getAwardtype() {
		return awardtype;
	}

	public void setAwardtype(Awardtype awardtype) {
		this.awardtype = awardtype;
	}

	public String getAwardTypeId() {
		return awardTypeId;
	}

	public void setAwardTypeId(String awardTypeId) {
		this.awardTypeId = awardTypeId;
	}



	public String getIsCoupon() {
		return isCoupon;
	}

	public void setIsCoupon(String isCoupon) {
		this.isCoupon = isCoupon;
	}

	public String getCouponId() {
		return couponId;
	}

	public void setCouponId(String couponId) {
		this.couponId = couponId;
	}

	public int getSectionDistributed() {
		return sectionDistributed;
	}

	public void setSectionDistributed(int sectionDistributed) {
		this.sectionDistributed = sectionDistributed;
	}

	public double getRealTimeRate() {
		return realTimeRate;
	}

	public void setRealTimeRate(double realTimeRate) {
		this.realTimeRate = realTimeRate;
	}

	public int getSectionDrawAward() {
		return sectionDrawAward;
	}

	public void setSectionDrawAward(int sectionDrawAward) {
		this.sectionDrawAward = sectionDrawAward;
	}

	public int getShareNum() {
		return shareNum;
	}

	public void setShareNum(int shareNum) {
		this.shareNum = shareNum;
	}

	public int getRealStock() {
		return realStock;
	}

	public void setRealStock(int realStock) {
		this.realStock = realStock;
	}

	public String getIsShare() {
		return isShare;
	}

	public void setIsShare(String isShare) {
		this.isShare = isShare;
	}
	
}